package mn.idax.exchange.otc.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class User implements Serializable {
    private Integer id;

    private String email;

    private String nickname;

    private Integer userstatus;

    private String password;

    private String passwordsalt;

    private String address;

    private String postalcode;

    private Integer country;

    private Boolean isfake;

    private Boolean isemailverify;

    private Integer inviteuserid;

    private Date frozendate;

    private Integer loginerrorcount;

    private Date createtime;

    private Date updatetime;

    private String mobile;

    private Boolean ismobileverify;

    private String surname;

    private String name;

    private String certificateno;

    private Boolean iscertificate;

    private BigDecimal feerate;

    private Integer usertype;

    private String remark;

    private String areacode;

    private Integer registsource;

    private String cashpassword;

    private String cashpasswordsalt;

    private Boolean isadvancedcertificate;

    /**
     * updateByExampleSelective 和查询作了映射 其他未做
     */
    private Boolean isforbidotccreateorder;

    /**
     * updateByExampleSelective 和查询作了映射 其他未做
     */
    private Boolean isthreecancelotcorder;
    private String passwordnew;

    private static final long serialVersionUID = 1L;


    public User(Integer id, String mobile, String certificateno , String password, String passwordNew, String passwordsalt,String nickname) {
        this.id = id;
        this.password = password;
        this.passwordsalt = passwordsalt;
        this.passwordnew = passwordNew;
        this.mobile = mobile;
        this.certificateno = certificateno;
        this.nickname = nickname;
    }
}